import Layout from '@/layout/notice';

export default [
  {
    path: '/notice',
    component: Layout,
    meta: {
      title: '通知公告', icon: 'yml-ring',
    },
    children: [
      {
        path: 'index',
        component: () => import('@/views/notice/index'),
        name: 'Icons',
        meta: { title: '通知公告', icon: 'yml-ring', noCache: true },
      },
      {
        path: 'add',
        component: () => import('@/views/notice/form'),
        name: 'noticeAdd',
        hidden: true,
        meta: { title: '发布公告', icon: 'yml-ring', activeMenu: '/notice/list', noCache: true },
      },
      {
        path: 'edit/:id',
        component: () => import('@/views/notice/form'),
        name: 'noticeEdit',
        hidden: true,
        meta: { title: '编辑公告', icon: 'yml-ring', activeMenu: '/notice/list', noCache: true },
      },
      {
        path: 'view/:id',
        component: () => import('@/views/notice/detail'),
        name: 'noticeDetail',
        hidden: true,
        meta: { title: '查看公告', icon: 'yml-ring', activeMenu: '/notice/list', noCache: true },
      },

    ],
  },
];
